/// name : "img"
/// type : "directory"
/// mtime : "Mon, 13 Jun 2022 02:01:17 GMT"

class NginxGetFileJsonResponse {
  NginxGetFileJsonResponse({
      String? name, 
      String? type, 
      String? mtime,}){
    _name = name;
    _type = type;
    _mtime = mtime;
}

  NginxGetFileJsonResponse.fromJson(dynamic json) {
    _name = json['name'];
    _type = json['type'];
    _mtime = json['mtime'];
  }
  String? _name;
  String? _type;
  String? _mtime;
  String? urlPath;
  String? directory;
NginxGetFileJsonResponse copyWith({  String? name,
  String? type,
  String? mtime,
}) => NginxGetFileJsonResponse(  name: name ?? _name,
  type: type ?? _type,
  mtime: mtime ?? _mtime,
);
  String? get name => _name;
  String? get type => _type;
  String? get mtime => _mtime;

  bool get isDirectory => _type == "directory";

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['name'] = _name;
    map['type'] = _type;
    map['mtime'] = _mtime;
    return map;
  }

}